import React,{Component} from 'react'

import {
    View,
    Text,
    StyleSheet,
    Modal,
    ActivityIndicator,
    Dimensions,
    TouchableNativeFeedback
}from 'react-native'




const loading=(props)=>{
    const showloading =props;
    return(
        <Modal
            transparent={true}
            visible={showloading}
            onRequestClose={() => {}}
            >
            <View style={{flex:1,backgroundColor:'rgba(0,0,0,0.1)',justifyContent:'center'}}>
                <ActivityIndicator size="large"/>
            </View>
            </Modal>
    )
}
export default loading